package com.stu.vo.resp;

import lombok.Getter;

/**
 * @author zhuzi
 * 2022/8/17 22:27
 */
@Getter
public enum ResultCode implements StatusCode {
    SUCCESS(1000,"请求成功"),FAILED(10001,"请求失败"),VALIDATE_ERROR(10002,"参数校验失败"),RESOPNSE_PACK_ERROR(10003,"response返回包装失败");
    private int code;
    private String msg;

    @Override
    public int getCode() {
        return 0;
    }

    @Override
    public String getMsg() {
        return null;
    }

    ResultCode(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }
}
